﻿#region Using Directives

using System;
using System.Windows.Forms;
using Edinger.Forms;

#endregion Using Directives


namespace Edinger
{
    internal sealed class App : ApplicationContext
    {
        #region Fields

        private MainForm mainForm;

        #endregion Fields


        #region Methods

        private void OnMainFormClosed(object sender, FormClosedEventArgs e)
        {
            ExitThread();
        }

        #endregion Methods


        #region Constructors

        public App()
        {
            ToolStripProfessionalRenderer renderer = new ToolStripProfessionalRenderer();
            renderer.ColorTable.UseSystemColors = true;
            renderer.RoundedEdges = false;

            ToolStripManager.Renderer = renderer;

            this.mainForm = new MainForm();
            this.mainForm.FormClosed += new FormClosedEventHandler(OnMainFormClosed);
            this.mainForm.Show();
        }

        #endregion Constructors
    }
}
